package top.chmin.project.cloud.sys.column.info;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;



/**
 * chmin
 * 2024-01-25 14:22:04
 * cloud-code
 */
public interface ColumnInfoSaveRest {

    @PostMapping("/cloud-code/columnInfo/auto/save")
    int save(@RequestBody P p);

    @Getter
    @Setter
    @Accessors(chain = true)
    class P {
        /*###########auto#start###########*/
        // column编号
        private String columnCode;
        // column注释
        private String columnComment;
        // 关联取值范围字典
        private String columnDict;
        // 对应label字段
        private String columnLabel;
        // 字段长度
        private Integer columnLength;
        // column名称
        private String columnName;
        // 是否可Null
        private String columnNullable;
        // 数字位数
        private Integer columnPrecision;
        // 对应依赖字段
        private String columnRelate;
        // 小数精度
        private Integer columnScale;
        // 序列编码
        private String columnSequence;
        // column类型
        private String columnType;
        // table编号
        private String tableCode;
        /*###########auto##end############*/
        /* append $modelFieldAppender$ */
    }

}
